package com.frank.stock4j.tusharepro.bean;

import com.frank.stock4j.tusharepro.BaseBean;
import com.frank.stock4j.tusharepro.http.BaseRequestParam;

/**
* 描述：获取美国短期国债利率数据
* @author: codesmith
**/
public interface UsTbrBean extends BaseBean {
    String API_NAME = "us_tbr";
    
    interface Fields {
    String date = "date";    //日期
    String w4_bd = "w4_bd";    //4周银行折现收益率
    String w4_ce = "w4_ce";    //4周票面利率
    String w8_bd = "w8_bd";    //8周银行折现收益率
    String w8_ce = "w8_ce";    //8周票面利率
    String w13_bd = "w13_bd";    //13周银行折现收益率
    String w13_ce = "w13_ce";    //13周票面利率
    String w26_bd = "w26_bd";    //26周银行折现收益率
    String w26_ce = "w26_ce";    //26周票面利率
    String w52_bd = "w52_bd";    //52周银行折现收益率
    String w52_ce = "w52_ce";    //52周票面利率
    }
    
    interface Params {
        date date = new date();
        /*
        * 日期
        */
        class date extends BaseRequestParam {
            { key = "date"; }
        }
        start_date start_date = new start_date();
        /*
        * 开始日期(YYYYMMDD格式)
        */
        class start_date extends BaseRequestParam {
            { key = "start_date"; }
        }
        end_date end_date = new end_date();
        /*
        * 结束日期
        */
        class end_date extends BaseRequestParam {
            { key = "end_date"; }
        }
        fields fields = new fields();
        /*
        * 指定输出字段(e.g. fields=&#39;w4_bd,w52_ce&#39;)
        */
        class fields extends BaseRequestParam {
            { key = "fields"; }
        }
    }
}